const mongoose = require('mongoose');

const CategorySchema = new mongoose.Schema({
    name: {
        type: String,
    },
    order: {
        type: Number,
        default: 0
    },
    createAt: {
        type: Date,
        default: Date.now
    },
    lastUpdateTime: {
        type: Date,
        default: Date.now
    }
});

const CategoryModel = mongoose.model('Category', CategorySchema);

mudule.exports = CategoryModel;